<!DOCTYPE html>
<html lang="zh-CN">
 <head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <meta name="description" content="" />
  <meta name="author" content="" />
  <link rel="icon" href="./img/asset-favicon.ico" />
  <title>社交-我的提问</title>
  <!-- 页面 css js -->
  <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->
  <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css" />
  <link rel="stylesheet" type="text/css" href="./css/widget-base.css" />
  <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css" />
  <link rel="stylesheet" type="text/css" href="./css/page-sj-person-myquestion.css" />
 </head>
 <body>
  <div class="wrapper" id="nav">
   <!--引用组件-->
   <!--头部导航-->
  </div>

   <div style="background:url(img/sky.jpg)0 /cover fixed;">
    <iframe src="base_person_info.html" frameborder="0" scrolling="no" width="100%" height="200"></iframe>
</div>
  <!-- <script>
    $(function(){
        $(".share .fa").hover(function(){
            $(this).css("opacity","1.0");
        },function(){
            $(this).css("opacity","0.6")
        })
    })
</script>
<script>
$(function(){
    // 个人简介
    $(".addedit").click(function(){
        var editBox = $(".edit-intro");
        var editBoxtxt = editBox.text();
        var input = $("<div><textarea class='editarea' type='text' /><div class='btns'><button class='sui-btn btn-default btn-cancel'>取消</button><button class='sui-btn btn-info btn-save'>保存</button></div></div>");
        editBox.html(input);

        // 点击保存
        $(".edit-intro .btn-save").click(function(){
            var newval = $(".editarea").val();
            if(newval == ""){
              editBox.html("暂时没有个人简介")
            }else if($.trim(newval) != $.trim(editBoxtxt)){
               editBox.html(newval);
            }
        })
        //点击取消
        $(".edit-intro .btn-cancel").click(function(){
          editBox.html("暂时没有个人简介")
        })

    });
    $(".edit-item").click(function(){
        var txt = $(this).text();  //可变的值

        var rightform = $(this).siblings(".sui-form");
        var rightinput = $(this).siblings(".sui-form input").val(); // 输入的值

        rightform.show();

        // $(".save-btn").click(function(){
        //     console.log(rightinput);
        // })



    })


})
</script> -->
  <!--两列布局-->
  <div class="wrapper  myhome">
   <div class="left-list">
    <div class="myhome-list">
     <ul class="home-list">
      <li><a href="./person-homepage.html">我的主页</a></li>
      <li><a href="./person-myanswer.html">我的回答</a></li>
      <li class="active"><a href="./person-myquestion.html">我的提问</a></li>
      <li><a href="#">我的分享</a></li>
     </ul>
     <ul class="home-list bottom">
      <li><a href="#">个人动态</a></li>
      <li><a href="#">我的关注</a></li>
      <li><a href="#l">我的收藏</a></li>
      <li><a href="./person-myreaded.html">浏览记录</a></li>
      <li><a href="./person-account.html">账户设置</a></li>
     </ul>
    </div>
    <!-- <script>
    $(function(){
        $(".home-list li").click(function(){
            $(this).addClass("active");
            $(this).siblings().removeClass("active");
        })
    })
</script> -->
   </div>
   <div class="right-content" id="app">
    <div class="questions">
     <h4><span>我的提问</span></h4>
     <ul class="question-list">
      <li v-for="i in problem">
          <span class="fl good"><span class="num">{{ i.awesome }}</span> 有用</span>
          <a :href="'./qa-detail.html?id='+i.id" target="_Blank">{{ i.title }}</a>
          <span class="fr date">{{ i.create_time | p_a }}</span>
          <span class="clearfix"></span>
      </li>
     </ul>
    </div>
   </div>
   <div class="clearfix"></div>
  </div>
  <div class="footer">
   <div class="wrapper">
    <div class="footer-bottom">
     <div class="link">
      <dl>
       <dt>
        网站相关
       </dt>
       <dd>
        关于我们
       </dd>
       <dd>
        服务条款
       </dd>
       <dd>
        帮助中心
       </dd>
       <dd>
        编辑器语法
       </dd>
      </dl>
      <dl>
       <dt>
        常用链接
       </dt>
       <dd>
        传智播客
       </dd>
       <dd>
        传智论坛
       </dd>
      </dl>
      <dl>
       <dt>
        联系我们
       </dt>
       <dd>
        联系我们
       </dd>
       <dd>
        加入我们
       </dd>
       <dd>
        建议反馈
       </dd>
      </dl>
      <dl>
       <dt>
        关注我们
       </dt>
       <dd>
        微博
       </dd>
       <dd>
        twitter
       </dd>
      </dl>
      <div class="xuke">
       <h3>内容许可</h3>
       <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
       <p>本站由 传智研究院 提供更新服务</p>
      </div>
     </div>
     <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p>
    </div>
   </div>
  </div>
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="js/axios-0.18.0.min.js"></script>
<script type="text/javascript" src="js/vue-2.5.16.js"></script>
<script type="text/javascript" src="js/layer/layer.js"></script>
<script type="text/javascript" src="js/base.js"></script>
<script type="text/javascript">
    $('#nav').load('/base_nav.html');
    let vm = new Vue({
    el: '#app',
    data: {
        host: HOST,

        user_id: localStorage.user_id || sessionStorage.user_id,
        token: localStorage.token || sessionStorage.token,

        history_title: 'VirtualBox + Vagrant（统一开发环境）',

        problem: null
    },
    mounted: function(){
        this.get_problem();
    },
    methods: {
        get_problem: function(){
            axios.get(this.host + '/discussion/'+this.user_id+'/problem/', {
                headers: {
                    'Authorization': 'JWT ' + this.token
                },
                responseType: 'json'
            })
            .then(response => {
                this.problem = response.data;
                console.log(this.histories)
            })
        }
    }
});
</script>
 </body>
</html>